package com.company.crm.workbench.service.impl;

import com.company.crm.workbench.domain.ClueActivityRelation;
import com.company.crm.workbench.mapper.ClueActivityRelationMapper;
import com.company.crm.workbench.service.ClueActivityRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 作者：王磊栋
 * 2021/4/22
 */
@Service
public class ClueActivityRelationServiceImpl implements ClueActivityRelationService {
    @Autowired
    private ClueActivityRelationMapper clueActivityRelationMapper;

    @Override
    public int unBundActivity(ClueActivityRelation clueActivityRelation) {
        return clueActivityRelationMapper.deleteClueActivityRelationByClueIdActivityId(clueActivityRelation);
    }

    @Override
    public int insertClueActivityRelation(List<ClueActivityRelation> clueActivityRelationList) {
        return clueActivityRelationMapper.insertClueActivityRelation(clueActivityRelationList);
    }

    @Override
    public List<ClueActivityRelation> selectClueActivityRelationByClueId(String id) {
        return clueActivityRelationMapper.selectClueActivityRelationByClueId(id);

    }
}
